package leung.java.excel;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

public class ExcelReader {

	/**
	 *@Description:
	 *@Notice: 
	 *@Author:David Leung
	 *@param args
	 */
	public static void main(String[] args) {
		try {
			URL url=new URL("http://112.25.14.31:8888/CshdOnlineGame/check");
			HttpURLConnection conn=(HttpURLConnection) url.openConnection();
			conn.setDoInput(true);
			conn.setDoOutput(true);
			conn.setRequestProperty("Content-type","application/x-www-form-urlencoded");
			String request="leagueid=1039&mpid=15980021580&chid=604010043496&pid=1039100001";
			conn.getOutputStream().write(request.getBytes());
			BufferedReader reader=new BufferedReader(new InputStreamReader(conn.getInputStream()));
			String temp=null;
			while((temp=reader.readLine())!=null){
				System.out.println(temp);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}


